home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / VideoToolbox 96.06.15 / VideoToolboxSources / MATLABMain.h < prev    next >
Text File  |  1993-12-14  |  1KB  |  28 lines

  1. /*
  2. MATLABMain.h
  3. This header allocates space for QuickDraw globals for use by THINK C MATLAB
  4. projects. It should be #included in the main C file of each THINK C MATLAB
  5. project, i.e. in the C file that contains "main" or "user_fcn". It must be
  6. included in exactly one source file of each project, as the THINK C Linker will
  7. otherwise complain.
  8.  
  9. Some older programs instead #define the symbol "MAIN" before #including
  10. the VideoToolbox.h header. If MAIN is defined then VideoToolbox.h #includes
  11. MATLABMain.h. This older approach is not recommended for new programs
  12. because it fails if you precompile the VideoToolbox.h header.
  13.  
  14. It might seem dangerous that VideoToolbox.h can include this file and that
  15. this file, in turn, includes VideoToolbox.h. Actually it's fine because
  16. VideoToolbox.h has preprocessor directives that guarantee that it will only
  17. be included once.
  18.  
  19. HISTORY:
  20. 93        dhb wrote it
  21. 9/15/93    dgp    extracted it from VideoToolbox.h
  22. */
  23. #pragma once
  24. #include "VideoToolbox.h"    // defines "THINK_C_QD"
  25. #if MATLAB && defined(THINK_C)
  26.     THINK_C_QD mex_qd;    /*  Allocate storage for QuickDraw globals. */
  27. #endif
  28.